﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IndoorPosition.Server.Application
{
    /// <summary>
    /// 项目信息数据输入对象
    /// </summary>
    public class ProjectInputDto
    {
        /// <summary>
        /// 项目名称
        /// </summary>
        [Required(ErrorMessage = "项目名称不可为空")]
        [MaxLength(50, ErrorMessage = "项目名称不能长于50位")]
        public string Name
        {
            get;
            set;
        }

        /// <summary>
        /// 项目范围：最西
        /// </summary>
        public double MinLongitude
        {
            get;
            set;
        }

        /// <summary>
        /// 项目范围：最东
        /// </summary>
        public double MaxLongitude
        {
            get;
            set;
        }

        /// <summary>
        /// 项目范围：最南
        /// </summary>
        public double MinLatitude
        {
            get;
            set;
        }

        /// <summary>
        /// 项目范围：最北
        /// </summary>
        public double MaxLatitude
        {
            get;
            set;
        }

        /// <summary>
        /// 场景URL
        /// </summary>
        [MaxLength(200, ErrorMessage = "场景URL不能长于200位")]
        public string SceneUrl
        {
            get;
            set;
        }

        /// <summary>
        /// 地形URL
        /// </summary>
        [MaxLength(200, ErrorMessage = "地形URL不能长于200位")]
        public string TerrainUrl
        {
            get;
            set;
        }

        /// <summary>
        /// 室外地图URL
        /// </summary>
        [MaxLength(200, ErrorMessage = "室外地图URL不能长于200位")]
        public string MapUrl
        {
            get;
            set;
        }

        /// <summary>
        /// 室外路径
        /// </summary>
        [MaxLength(50, ErrorMessage = "室外路径不能长于50位")]
        public string Route
        {
            get;
            set;
        }
    }
}
